import proFetch from "../../../../../public/functions/project-fetch";

/**
 * 列表查询
 * @param pk_org
 * @param orgPk
 * @param deptPk
 * @param isOther_node
 * @param searchModalValue
 * @param pageInfo
 * @param isShowOnJob
 * @returns {Promise<any>}
 * @constructor
 */
export default function QueryCenterAction(pk_org, orgPk, deptPk, isOther_node = true, searchModalValue,pageInfo,isShowOnJob) {
    const postData = {
        pk_org,
        typeField: 'pk_dept',
        orgPk,
        deptPk,
        isOther_node,
        pageInfo,
        isShowOnJob,
        ...searchModalValue
    };

    return proFetch({
        url: '/nccloud/hrcm/center/QueryCenterAction.do',
        body: postData,
    });
}